package users

import (
	logicuser "ginx/internal/logic/users"

	"github.com/gin-gonic/gin"
)

type IUser interface {
	OtpUrl(ctx *gin.Context)
	Register(ctx *gin.Context)
	Login(ctx *gin.Context)
	Logout(ctx *gin.Context)
	QueryAll(ctx *gin.Context)
	QueryById(ctx *gin.Context)
	Update(ctx *gin.Context)
	Delete(ctx *gin.Context)
}

type ControllerV1 struct {
	users *logicuser.Users
}

func NewV1() IUser {
	return &ControllerV1{
		users: logicuser.New(),
	}
}
